package com.dengyuanke.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("活动实体类")
@TableName("tb_activity")
public class Activity extends SuperEntity<Activity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("产品id")
	@TableField("goods_id")
	private String goodsId;

	@ApiModelProperty("活动价格")
	private BigDecimal price;
    /**
     * 价格计数单位:d-天，h-小时，m-月，w-周
     */
	@ApiModelProperty("价格计数单位")
	private String unit;
    /**
     * 描述
     */
	@ApiModelProperty("描述")
	private String describe;
    /**
     * 活动开始时间
     */
	@ApiModelProperty("活动开始时间")
	@TableField("start_time")
	private Date startTime;
    /**
     * 活动结束时间
     */
	@ApiModelProperty("活动结束时间")
	@TableField("end_time")
	private Date endTime;

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Override
	public String toString() {
		return "Activity{" +
				"goodsId='" + goodsId + '\'' +
				", price=" + price +
				", unit='" + unit + '\'' +
				", describe='" + describe + '\'' +
				", startTime=" + startTime +
				", endTime=" + endTime +
				'}';
	}
}
